package cn.kgc.chlm.service.impl;

import cn.kgc.chlm.dao.UserDao;
import cn.kgc.chlm.dao.impl.UserDaoImpl;
import cn.kgc.chlm.entity.User;
import cn.kgc.chlm.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public List<User> selectUserAll() {
        return userDao.selectUserAll();
    }

    @Override
    public User login(User user) {
        return userDao.login(user);
    }

    @Override
    public User selectUserById(Integer id) {
        return selectUserById(id);
    }

    @Override
    public int addUser(User user) {
        return 0 ;
    }

    @Override
    public int updateUser(User user) {
        return userDao.updateUser(user);

    }

    @Override
    public int deleteUser(User user) {
        return 0;
    }
}
